package com.smfx.yxt.common.enums;

public enum InterestCourseStatus {

	AUDIT_SUCCESS("000", "审批通过"),
	AUDIT_PENING("001", "待审批"),
	AUDIT_REJECT("002", "审批不通过");

	private final String code;
	
	private final String desc;
	
	private InterestCourseStatus(String code, String desc) {
		this.code = code;
		this.desc = desc;
	}
	
	public static String getDesc(String code) {
		for(InterestCourseStatus status : InterestCourseStatus.values()) {
			if(status.getCode().equals(code)) {
				return status.getDesc();
			}
		}
		return null;
	}

	public String getCode() {
		return code;
	}

	public String getDesc() {
		return desc;
	}
	
}
